Optimal. Leaf size=14 \[ \frac {\tanh ^{-1}(\sin (a+b x))}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {4373, 3855}
\begin {gather*} \frac {\tanh ^{-1}(\sin (a+b x))}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3855
Rule 4373
Rubi steps
\begin {align*} \int \csc (2 a+2 b x) \sin (a+b x) \, dx &=\frac {1}{2} \int \sec (a+b x) \, dx\\ &=\frac {\tanh ^{-1}(\sin (a+b x))}{2 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 14, normalized size = 1.00 \begin {gather*} \frac {\tanh ^{-1}(\sin (a+b x))}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 20, normalized size = 1.43
method | result | size |
default | \(\frac {\ln \left (\sec \left (x b +a \right )+\tan \left (x b +a \right )\right )}{2 b}\) | \(20\) |
risch | \(-\frac {\ln \left ({\mathrm e}^{i \left (x b +a \right )}-i\right )}{2 b}+\frac {\ln \left (i+{\mathrm e}^{i \left (x b +a \right )}\right )}{2 b}\) | \(38\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 115 vs.
\(2 (12) = 24\).
time = 0.52, size = 115, normalized size = 8.21 \begin {gather*} -\frac {\log \left (\frac {\cos \left (b x + 2 \, a\right )^{2} + \cos \left (a\right )^{2} - 2 \, \cos \left (a\right ) \sin \left (b x + 2 \, a\right ) + \sin \left (b x + 2 \, a\right )^{2} + 2 \, \cos \left (b x + 2 \, a\right ) \sin \left (a\right ) + \sin \left (a\right )^{2}}{\cos \left (b x + 2 \, a\right )^{2} + \cos \left (a\right )^{2} + 2 \, \cos \left (a\right ) \sin \left (b x + 2 \, a\right ) + \sin \left (b x + 2 \, a\right )^{2} - 2 \, \cos \left (b x + 2 \, a\right ) \sin \left (a\right ) + \sin \left (a\right )^{2}}\right )}{4 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 28 vs.
\(2 (12) = 24\).
time = 3.44, size = 28, normalized size = 2.00 \begin {gather*} \frac {\log \left (\sin \left (b x + a\right ) + 1\right ) - \log \left (-\sin \left (b x + a\right ) + 1\right )}{4 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: HeuristicGCDFailed} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 28 vs.
\(2 (12) = 24\).
time = 0.40, size = 28, normalized size = 2.00 \begin {gather*} \frac {\log \left (\sin \left (b x + a\right ) + 1\right ) - \log \left (-\sin \left (b x + a\right ) + 1\right )}{4 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.15, size = 12, normalized size = 0.86 \begin {gather*} \frac {\mathrm {atanh}\left (\sin \left (a+b\,x\right )\right )}{2\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________